CC=gcc
SRCS=gaim_awn.c
OBJS=gaim_awn.o
all:	gaim_awn.so

$(OBJS): gaim_awn.c
	$(CC) -fPIC -c $(SRCS) -o gaim_awn.o -DVERSION=\"`date "+%Y%m-%d_%R"`\" `pkg-config --cflags gtk+-2.0 gaim atk cairo pango glib-2.0 dbus-1`

gaim_awn.so: $(OBJS)
	$(CC) -shared -Wl,-soname,gaim_awn.so -o gaim_awn.so $(OBJS)

install: gaim_awn.so
	cp gaim_awn.so ~/.gaim/plugins/

clean:
	rm gaim_awn.so *.o

package:
	tar cvzf gaim_awn-rev`svn info | grep Revision | sed 's/^Revision: //'`.tar.gz gaim_awn.c gaim_awn.so Makefile
